package com.lxy_s_springboot.lxy_s_springboot.mapper;


import com.lxy_s_springboot.lxy_s_springboot.model.MessageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.logging.log4j.message.Message;

import java.util.List;

@Mapper
public interface MessageMapper {
    @Insert("insert into message_info(`from`,`to`,`message`) values(#{from},#{to},#{message})")
    void insertMessage(MessageInfo messageInfo);
    @Select("select * from message_info where delete_flag = 0")
    List<MessageInfo> selectAllMessage();
}
